package edu.hziee.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import edu.hziee.mappers.UserMapper;
import edu.hziee.models.User;

@Repository
public class UserDao {
	@Autowired
	UserMapper userMapper;
	public User findByName(String userName){
		return userMapper.findByName(userName);
	}
	public void addUser(User user){
		userMapper.add(user);;
		
	}
	public void deleteUser(String userName){
		userMapper.delete(userName);
	}
	
}
